// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitor;

#include "OracleSetTransactionStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../visitor/OracleASTVisitor.h"

// @Override
void OracleSetTransactionStatement::accept0(OracleASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(OracleSetTransactionStatement)))
  {
    acceptChild(visitor, name);
  }
  visitor->endVisit(SharedObject(OracleSetTransactionStatement));
}

SQLExpr_ptr OracleSetTransactionStatement::getName()
{
  return name;
}

void OracleSetTransactionStatement::setName(SQLExpr_ptr name)
{
  this->name = name;
}

BOOL_ptr OracleSetTransactionStatement::isReadOnly()
{
  return readOnly;
}

void OracleSetTransactionStatement::setReadOnly(BOOL_ptr readOnly)
{
  this->readOnly = readOnly;
}

BOOL_ptr OracleSetTransactionStatement::isWrite()
{
  return write;
}

void OracleSetTransactionStatement::setWrite(BOOL_ptr write)
{
  this->write = write;
}
